package com.example.petchating.android

import android.os.Bundle

import com.badlogic.gdx.backends.android.AndroidApplication
import com.badlogic.gdx.backends.android.AndroidApplicationConfiguration
import com.example.petchating.Main
import com.example.petchating.android.api.AndroidChatDatabase
import com.example.petchating.android.api.AndroidChatService
import com.example.petchating.android.api.AndroidEmotionService

/** Launches the Android application. */
class AndroidLauncher : AndroidApplication() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        val config = AndroidApplicationConfiguration()

        val chatService = AndroidChatService(this)
        val historyRepo = AndroidChatDatabase(this)
        val emotionService = AndroidEmotionService(this)

        val game = Main(chatService,historyRepo,emotionService)

        initialize(game, config)
    }
}
